package com.itheima.vo.pms;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@TableName("pms_sku_stock")
public class SkuStock implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    @TableField("product_id")
    private Long productId;
    /**
     * sku编码
     */
    @TableField("sku_code")
    private String skuCode;

    private BigDecimal price;
    /**
     * 库存
     */
    private Integer stock;
    /**
     * 预警库存
     */
    @TableField("low_stock")
    private Integer lowStock;
    /**
     * 展示图片
     */
    private String pic;
    /**
     * 销量
     */
    private Integer sale;
    /**
     * 单品促销价格
     */
    @TableField("promotion_price")
    private BigDecimal promotionPrice;
    /**
     * 锁定库存
     */
    @TableField("lock_stock")
    private Integer lockStock;
    /**
     * 商品销售属性，json格式
     */
    @TableField("sp_data")
    private String spData;


}
